﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QuanLyTiemNET_DEV_LINQ
{
    public partial class XtraFormHoaDon : DevExpress.XtraEditors.XtraForm
    {
        public XtraFormHoaDon()
        {
            InitializeComponent();
        }

        private void XtraFormHoaDon_Load(object sender, EventArgs e)
        {
            XtraReportHoaDon rp = new XtraReportHoaDon();
            rp.maPhieu.Value = FrmPhongMay.laymaphieu;
            
            documentViewer1.PrintingSystem = rp.PrintingSystem;
            rp.CreateDocument();

        }
    }
}